﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeFile="~/Admin/Capdetai.aspx.cs" CodeBehind="Capdetai.aspx.cs" Inherits="NCKH.Admin.Capdetai" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div style="margin-left:200px">
        <fieldset style="width: 383px">
            <legend style="text-align:center">QUẢN LÝ CẤP ĐỀ TÀI</legend>
        <table style="width: 371px">
           
            <tr>
                <td>Cấp đề tài</td>
                <td>
                      <asp:TextBox ID="txtcapdetai" runat="server" Height="24px" Width="173px"></asp:TextBox>
                    
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvCap" runat="server" ControlToValidate="txtcapdetai" Display="Dynamic" ErrorMessage="Nhập cấp!"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td>
                    <asp:ImageButton ID="ibtThem" runat="server" ImageUrl="../Images/Save%20(1).png"  OnClick="ibtThem_Click" CommandName="Thêm" />Lưu lại &nbsp;
            
                    <asp:ImageButton ID="ibtHuy" runat="server" ImageUrl="../Images/xoa.png"  OnClick="ibtHuy_Click" CommandName="Xóa" Height="22px" Width="38px" />Hủy bỏ &nbsp;
                      
                </td>
            </tr>

             <tr>
               <td>&nbsp;&nbsp;&nbsp;Nhập thông tin&nbsp;&nbsp;&nbsp;</td> 
                
                <td>
                    <asp:TextBox ID="txtTimkiem" runat="server" Height="24px" Width="204px"></asp:TextBox>
                </td>
                <td>
                     <asp:ImageButton ID="ibtTimkiem" runat="server" ImageUrl="../Images/search.png"  CausesValidation="false"  OnClick="ibtTimkiem_Click"  />
          
                </td>
            </tr>
         </table> 
       </fieldset>
        </div>
    <div style="margin-left:200px">
       <br />
       <br />
        <fieldset style="width: 361px">
            <legend style="text-align:center">DANH SÁCH CẤP ĐỀ TÀI</legend>
       
        <asp:GridView ID="grvcapdetai" runat="server" AutoGenerateColumns="false" EnableModelValidation="false" onrowcommand="grvcapdetai_RowCommand" DataKeyNames="MacapDT" OnSelectedIndexChanged="grvcapdetai_SelectedIndexChanged">
            <Columns>
                <asp:TemplateField HeaderText="&nbsp;&nbsp;Chọn&nbsp;&nbsp;">
                    <ItemTemplate>
                          <asp:CheckBox ID="chkchon" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="&nbsp;&nbsp;STT &nbsp;&nbsp;">
                    <ItemTemplate>
                    <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
               </asp:TemplateField>
                <asp:BoundField HeaderText="&nbsp;&nbsp;&nbsp;&nbsp;Tên cấp đề tài&nbsp;&nbsp;&nbsp;&nbsp;" DataField="TencapDT" />
                <asp:TemplateField HeaderText="&nbsp;&nbsp;Xóa&nbsp;&nbsp;">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtxoa" runat="server" CommandName="xoa" CommandArgument='<%# Eval("MacapDT") %>'
                         OnClientClick='return confirm("Có chắc chắn muốn xoá không?");'>
                             <img src="../Images/xoa.png" alt="Xóa" title="Xóa" /></asp:LinkButton>
        
                            </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="&nbsp;&nbsp;Sửa&nbsp;&nbsp;">
                    <ItemTemplate>
                        <a href='Capdetai_Sua.aspx?pid=<%# Eval("MacapDT") %>'>
                         <img src="images/edit.png" alt="Sửa" title="Sửa" /></a>
                    </ItemTemplate>
                     
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </fieldset>
         <div style="text-align:left">
            <asp:ImageButton ID="ibtXoa" runat="server" ImageUrl="../Images/delete.png" OnClick="ibtXoa_Click" CommandName="Xóa" CausesValidation="false" Height="31px" Width="25px" />
       </div>
    </div>
</asp:Content>